<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>湖南省自来水公司营销管理信息系统</title> 
	
	<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/grid.css" type="text/css" media="screen" title="no title" />	
	<link rel="stylesheet" href="../css/layout.css" type="text/css" media="screen" title="no title" />	
	
	<link rel="stylesheet" href="../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../css/custom.css" type="text/css" media="screen" title="no title">
	<script src="../js/jquery/jquery-3.3.1.js"></script>
	<script src="../layui/layui.all.js" type="text/javascript" ></script>
	<script src="/webjars/vue/2.5.17/dist/vue.js"></script>
</head> 
 
<body> 

<div id="wrapper">
	<div id="bool"><script>window.onload=function (){  $("#bool").load("../ming.html");}</script></div>

	<script>
						function show1(){
							var value=1;
							var w = ($(window).width() * 0.7);
							var h = ($(window).height() - 50);
							var str="";
							layer.open({
								resize: false,
								title: '预览',
								shadeClose: true,
								area: [w + 'px', h + 'px'],
								type: 2,
								content: 'rd_init_progress.html',
								btn: ['关闭'],
								// yes: function (index, obj) {
								// 	///当点击‘确定’按钮的时候，获取弹出层返回的值
								// 	var res = window["layui-layer-iframe" + index].show();
								// 	//打印返回的值，看是否有我们想返回的值。
								// 	alert(res);
								// 	//     console.log(res);
								// 	//最后关闭弹出层
								// 	layer.close(index);
								// },
								success: function (layero, index) {
									var body = layer.getChildFrame('body', index);
									str = body.find('button').html();
								}
							});
						}
						function show2(aa){
							alert(aa);

						}
					</script>

	
	<div id="content" class="xgrid">
		
 		
		<div class="x12">
			
			<h2>抄表初始化</h2>
			
			<p><a href="javascrip:#;" onclick="show1()"
				 class="btn-icon btn-plus"><span></span>初始化新抄表年月</a></p>

			<table class="data display">
					<thead>
						<tr>
							<th>抄表年份</th>
							<th>抄表月份</th>
							<th>当前</th>
							<th>初始化操作人</th>
							<th>初始化日期</th>
							<th>结束日期</th>
						</tr>
					</thead>
					<tbody>
						<tr class="odd gradeX" v-for="y in yearmonth">
							<td>{{y.ReadYear}}</td>
							<td>{{y.ReadMonth}}</td>
							<td v-if="y.IsCurrent">是</td>
							<td v-if="!y.IsCurrent"></td>
							<td>{{y.EmpNmae}}</td>
							<td>{{y.InitDate}}</td>
							<td>{{y.EndDate}}</td>
						</tr>
						</tbody>
					</table>
			
		</div> <!-- .x12 -->
		
	</div> <!-- #content -->
	<script>
		var content=new Vue({
			el:"#content",
			data:{
				yearmonth:"",
			},
			created(){
				$.getJSON("/rd-yearmonth/queryyearall",function (json) {
					content.yearmonth=json;
				})
			}
		});
	</script>
	
	<div id="footer">		
		<div class="content_pad">			
			<p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>.   技术支持 <a href="#">职业教育</a>.</p>
		</div> <!-- .content_pad -->
	</div> <!-- #footer -->
	
</div> <!-- #wrapper -->

<script src="../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../js/misc/excanvas.min.js"></script>
<script src="../js/jquery/facebox.js"></script>
<script src="../js/jquery/jquery.visualize.js"></script>
<script src="../js/jquery/jquery.dataTables.min.js"></script>
<script src="../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../js/jquery/jquery.uniform.min.js"></script>
<script src="../js/jquery/jquery.placeholder.min.js"></script>

<script src="../js/widgets.js"></script>
<script src="../js/dashboard.js"></script>

<script type="text/javascript">
	
$(document).ready ( function () 
{
	Dashboard.init ();		
});

//初始化抄表年月
function initYM(){
	//确定要初始化抄表年月【2014年01月】吗？
	showWindow({url:'/rd_init_progress.html',width:560,height:800});
}

</script>

</body> 
 
</html>